<p class="Paragraph"><help:paragraphinfo state="U" number="8" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">Expression:</span> Any numeric expression that contains the error code of the error message that you want to <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>return.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="9" xmlns:help="http://openoffice.org/2000/help"/>If no parameters are passed, the Error function returns the error message of the most recent error that occurred during program execution.</p>
<p class="PropText"><help:paragraphinfo state="U" number="12" xmlns:help="http://openoffice.org/2000/help"/>on error goto ErrorHandler REM Set up error handler</p>
<p class="PropText"><help:paragraphinfo state="U" number="13" xmlns:help="http://openoffice.org/2000/help"/>Dim iVar as Integer</p>
<p class="PropText"><help:paragraphinfo state="U" number="14" xmlns:help="http://openoffice.org/2000/help"/>Dim sVar As String</p>
<p class="PropText"><help:paragraphinfo state="U" number="15" xmlns:help="http://openoffice.org/2000/help"/>REM An error occurs due to non-existent file</p>
<p class="PropText"><help:paragraphinfo state="U" number="17" xmlns:help="http://openoffice.org/2000/help"/>Open "\file9879.txt" for Input as #iVar</p>